{% extends 'web_template/default_two/templates/base.html' %}
{% block title %}
    {{ tlcms_column.column.column_name }}
{% endblock %}
{% block keywords %}
    {{ tlcms_column.column.column_name  }}
{% endblock %}
{% block content %}
    <div class="weizhi">您现在的位置是：<a href="{{ url_for('webapp_bp.index_page') }}" title="{{ public.system.web_name }}">首页</a>&nbsp;&gt;&nbsp;<a
            href="{{ url_for('webapp_bp.list_article_page',cid=tlcms_column.column.uuid) }}">{{ tlcms_column.column.column_name  }}</a></div>
    <ul class="news_list">
        {% for foo in tlcms_column.dataList %}
            <li><a href="{{ url_for('webapp_bp.article_page',uid=foo.ID) }}" title="{{ foo.title }}" target="_blank"><i><img src="{{ foo.imgUrl }}" alt="{{ foo.title }}"></i>
                <h2>{{ foo.title }}</h2>
            </a>
                <p class="news_list_info">{{ foo.description[:60] }}{% if foo.description|length>60 %}...{% endif %}</p>
                <p class="news_list_time"><span><a href="{{ url_for('webapp_bp.list_article_page',cid=foo.PID_ID) }}"
                                                   target="_blank">{{ foo.PID }}</a></span><span>时间：{{ foo.update_time }}</span><span>点击：{{ foo.clicks }}</span></p>
            </li>
        {% endfor %}
    </ul>
    {% if tlcms_column.page.pages>1 %}
        <div class="pagelist">
                {% if tlcms_column.page.prev %}
                    <a href="{{ url_for('webapp_bp.list_article_page',cid=tlcms_column.column.uuid) }}?page=1">‹‹</a>
                    <a href="{{ url_for('webapp_bp.list_article_page',cid=tlcms_column.column.uuid) }}?page={{ tlcms_column.page.prevPage }}" class="next">‹</a>
                {% endif %}
                {% for foo in tlcms_column.page.iter_pages %}
                    {% if tlcms_column.page.currentPage==foo %}
                        <a href="javascript:;">{{ foo }}</a>
                    {% else %}
                        <a href="{{ url_for('webapp_bp.list_article_page',cid=tlcms_column.column.uuid) }}?page={{ foo }}">{{ foo }}</a>
                    {% endif %}
                {% endfor %}
                {% if tlcms_column.page.next %}
                    <a href="{{ url_for('webapp_bp.list_article_page',cid=tlcms_column.column.uuid) }}?page={{ tlcms_column.page.nextPage }}" class="next">›</a>
                {% endif %}
                {% if tlcms_column.page.pages!=tlcms_column.page.currentPage %}
                    <a href="{{ url_for('webapp_bp.list_article_page',cid=tlcms_column.column.uuid) }}?page={{ tlcms_column.page.pages }}">››</a>
                {% endif %}
        </div>
    {% endif %}
{% endblock %}